{include file='admin/header.html'}

<form class="layui-form" action="">
    <div class="layui-form-item">
        <label class="layui-form-label">{$tran.webname}</label>
        <div class="layui-input-inline">
            <input type="text" name="name" value="{$row.name}" required lay-verify="required" placeholder="{$tran.input_webname}"
                autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">{$tran.weburl}</label>
        <div class="layui-input-inline">
            <input type="url" name="url" value="{$row.url}" required lay-verify="required|url" placeholder="{$tran.input_weburl}"
                autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">Logo</label>
        <div class="layui-input-inline">
            <input type="text" name="logo" value="{$row.logo}" placeholder="" autocomplete="off"
                class="layui-input upload">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">{$tran.sort}</label>
        <div class="layui-input-inline">
            <input type="number" name="sort" value="{$row.sort}" required lay-verify="required|number"
                placeholder="{$tran.input_sort}" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">{$tran.status}</label>
        <div class="layui-input-block">
            <input type="hidden" name="status" value="1">
            <input type="checkbox" name="status" value="0" lay-skin="switch" {if $row.status==0} checked{/if}
                lay-text="ON|OFF">
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <input type="hidden" name="id" value="{$row.id}">
            <button type="button" class="layui-btn" lay-submit="" lay-filter="submit">{$tran.save}</button>
            <button type="reset" class="layui-btn layui-btn-primary">{$tran.reset}</button>
        </div>
    </div>
</form>

{include file='admin/inc/form.html'}

{include file='admin/footer.html'}